package Common;
import java.util.Vector;

import ClientSide.*;
import Common.*;

/**
 * 
 * Student class for student sql queries
 *
 */
public class StudentClass {

	public String FirstName;
	public String LastName;
	public String Sid;
	public String ClassId;
	//private ChatClient client;
	public String SYear=null;
	public String EYear=null;
	public Courses ListOfCourses;
	public Vector<String> Years;
	public Vector<String> Semesters;
	
	/**
	 * 
	 * @param fn = First name
	 * @param ln = Last name
	 * @param id = ID
	 */
	
	public StudentClass(String fn, String ln, String id)
	
	{
		this.FirstName=fn;
		this.LastName=ln;
		this.Sid=id;
		this.ClassId=null;
		//this.client=cl;
		this.ListOfCourses=null;
		
	}
	
	/**
	 * 
	 * @param fn = First name
	 * @param ln = Last name
	 * @param id = ID
	 * @param c = Class ID
	 */
public StudentClass(String fn, String ln, String id,String c)
	
	{
		this.FirstName=fn;
		this.LastName=ln;
		this.Sid=id;
		this.ClassId=c;
		System.out.println("in student classs ClassId is : "+this.ClassId);
		//this.client=cl;
		this.ListOfCourses=new Courses();
		this.ListOfCourses.lOfCourses=new Vector<Course>();
		
	}
/**
 * Empty constructor
 */
	public StudentClass()
	{
		this.FirstName=null;
		this.LastName=null;
		this.Sid=null;
		this.ListOfCourses=null;
		this.Years=null;
		this.Semesters=null;
		
	}
	
	
	/**
	 * 
	 * @param sid = Student ID
	 * @param c = Vector of courses
	 * @param y = Vector of years
	 * @param s = Vector of semseters
	 */
	public StudentClass(String sid,Courses c,Vector<String> y,Vector<String> s )
	{
		this.ListOfCourses=c;
		this.Years=y;
		this.Semesters=s;
		this.Sid=sid;
	}
	public void AddNewStudent()
	{
		//this.client.handleMessageFromClientUI("insertUser"+" "+Sid+" "+FirstName+" "+LastName+" "+pass+" 0 Student");
	}
	
}
